package cl.whyem.appbase.mappers;

import java.util.List;
import org.apache.ibatis.annotations.Select;
import cl.whyem.appbase.entities.User;

/**
 * @author skatam
 *
 */
public interface UserMapper {
	
	@Select("select user_id as userId, username as userName from user where user_id=#{userId}")
	public User findUserById(Integer userId);
	
	@Select("select user_id as userId, username as userName from user")
	public List<User> findAllUsers();
        
        //Consulta SQL en mapper.xml
        public List<User> selectAllUser();
}
